<?php
 $data = LinkGen::getInstance(LinkGen::PRODUCT)->collectionLinkParts(array($product));
 $route = $data[$product['id']]['route'];
 $parts = $data[$product['id']];
 unset($parts['route']);
?>
<ul class="tabNavigation">
	<?php
		// product main parameter
		$active = $sf_request->getParameter('action') != 'paramArticle' &&
									  $sf_request->getParameter('action') != 'comments'     &&
									  $sf_request->getParameter('action') != 'techInfo';
		include_partial('productPage/tabLabel', array(
			'link' => url_for($route, $parts),
			'label' => __('Tooteinfo'),
			'last' => !count($parameterArticles),
			'active' => $active)
		);

		if($active)get_partial('productPage/defaultTabContent', array('product' => $product));
	?>

	<?php foreach($parameterArticles as $index => $act): ?>
		<?php
			$active = $sf_request->getParameter('action') == 'paramArticle' && $sf_request->getParameter('id') == $act['id'];
			$arr = array(
			'link' => url_for($route, array_merge($parts, array(
							'action' => $act['action'],
							'id' => $act['id']))),
			'label' => $act['title'],
			'last' => $index == count($parameterArticles)-1,
			'active' =>  $active );

			include_partial('productPage/tabLabel', $arr);
		?>
	<?php endforeach; ?>
	<div class="clear"></div>
</ul>